import request from '@/utils/request'

/**
 * 新增广告基础表
 * @param {Object} data 对象参数
 */
export function addAdvertLaunch(data) {
	return request({
		url: '/api/advertLaunch/addAdvertLaunch',
		method: 'post',
		data: data
	})
}

/**
 * 修改广告基础表
 * @param {Object} data 对象参数
 */
export function editAdvertLaunch(data) {
	return request({
		url: '/api/advertLaunch/editAdvertLaunch',
		method: 'post',
		data: data
	})
}

/**
 * 删除广告基础表
 * @param {Object} id 主键编号
 */
export function deleteAdvertLaunch(id) {
	return request({
		url: '/api/advertLaunch/deleteAdvertLaunch/' + id,
		method: 'post',
	})
}

/**
 * 查询广告基础表列表
 * @param {Object} param 查询对象
 */
export function findAdvertLaunchList(param) {
	return request({
		url: '/api/advertLaunch/findAdvertLaunchList',
		method: 'get',
		params: param
	})
}

/**
 * 查询广告基础表详情
 * @param {Object} id 主键编号
 */
export function findAdvertLaunchDetail(id) {
	return request({
		url: '/api/advertLaunch/findAdvertLaunchDetail/' + id,
		method: 'get',
	})
}
